X_LIBS		+= libxlibc.a libnetc.a

X_INCDIRS	+= NetServer/src/include NetServer/src/include/lwip 
X_INCDIRS	+= NetServer/src/include/ipv4
X_INCDIRS	+= NetServer/

#X_CFLAGS	+= -w

NAME		:= NetServer.xapp
SRC			+= main.c
SRC			+= src/
SRC			+= net_server.c

define CUSTOM_TARGET_CMD
echo [APP] $@; \
$(LD) $(X_LDFLAGS) $(X_OBJS) -o $@ $(patsubst %, -L%, $(X_LIBDIRS)) \
	--start-group $(patsubst %, -l:%, $(X_LIBS)) --end-group
endef
